<div class="mainBody-box-bg1">
<div>
	<form method="get" id="formSearch" name="formSearch" action="">
	<table>
		<tr>
			<td>
				<div class="left">
					日期：<input type="text" id="txt_s_time" value="{$s_time}" name="txt_s_time" readonly="readonly" onClick="WdatePicker()" />到
					<input type="text" id="txt_e_time" value="{$e_time}" name="txt_e_time"  readonly="readonly" onClick="WdatePicker()" />
					业主卡号：<input type="text" onkeydown="{literal}if(setCard('txt_card_value',event)){$('#formSearch').submit();}{/literal}" value="{$owner_card}" name="txt_card_value" id="txt_card_value" />
		        </div>
			
				<div class="left">
				商家名称：<input style="width:150px;" type="text" id="txt_shop_name" value="{$shop_name}" name="txt_shop_name" />
		       	交易类型：<select style="width:100px;" name="sel_cast_type" id="sel_cast_type">
					<option value="">全部</option>
					<option {if $cost_type eq 1}selected="selected"{/if} value="1">增加积分</option>
					<option {if $cost_type eq 2}selected="selected"{/if} value="2">扣减积分</option>
					<option {if $cost_type eq 3}selected="selected"{/if} value="3">撤销操作</option>
				</select>
				</div>
				<div class="left" style="padding-top:3px;">
					<a id="searchButton" onclick="$('#formSearch').submit();" class="buttonStyle"><span></span>搜 索</a>
				</div>
			</td>
			
		</tr>
	</table>
	</form>
	</div>
</div>
<div class="list-div" id="listDiv">
<table cellspacing='1' cellpadding='1' id='list-table' bgcolor="#cccccc" width="100%" class="table1">
  <tr>
  	<th height="40" width="90px" align="left">
  		交易流水号</th>        
    <th width="70px">交易时间</th>
    <th width="50px">卡号</th>
    <th width="50px">业主姓名</th>
    <th width="100px">商户名称</th>
    <th width="50px">操作类型</th>
    <th width="60px">操作前业主剩余总积分</th>
    <th width="80px">操作前业主在该商户剩余总积分</th>
    <th width="80px">本次操作积分</th>
    <th width="80px">本次折扣类型</th>
    <th width="90px">本次赠送/折扣额</th>
    <th width="100px">本次实际操作积分</th>
    <th width="60px">操作后业主剩余总积分</th>
    <th width="70px">操作后在该商户剩余总积分</th>
  </tr>
  {foreach from=$list item=list}
  <tr>
  	<td align="left" height="40px">{$list.pay_id}{if $list.is_cancel eq 1}<br />(已撤销){/if}</td>
    <td align="center">{$list.cost_time}</td>
    <td>{$list.owner_card}</td>
    <td>{$list.owner_name}</td>
    <td>{$list.shop_simple_name}</td>
    <td>{if $list.cost_type eq 1}增加积分{elseif $list.cost_type eq 2}扣减积分{else}撤销操作{/if}</td>
    <td>{$list.cost_before_money}</td>
    <td>{$list.cost_shop_before_money}</td>
    <td>{$list.cost_money}</td>
    <td>{if $list.cost_type eq 3}
    		无
    	{elseif $list.cost_type eq 2}
    		{if $list.discount_type eq 1}无{else}打折{/if}
    	{else}
    		{if $list.discount_type eq 1}送积分{else}打折{/if}
    	{/if}
    </td>
    <td>
    	{if $list.cost_type eq 3}
    		无
    	{elseif $list.cost_type eq 2}
    		{if $list.discount_type eq 1}无{else}{$list.discount_num}折{/if}
    	{else}
    		{if $list.discount_type eq 1}赠送{$list.discount_num}积分{else}{$list.discount_num}折{/if}
    	{/if}
    <td>{$list.cost_money_t}</td>
    <td>{$list.cost_after_money}</td>
    <td>{$list.cost_shop_after_money}</td>
  </tr>
  {/foreach}
  <tr>
    <th align="right" colspan="14">{$pageStr}</th>
  </tr>
</table>
</div>
